package com.qf.listener.boot;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @author 千锋教育
 * @Company http://www.mobiletrain.org/
 * @Version 1.0
 */
@Component
public class BootListener02 {

    @RabbitListener(queues = "boot-queue2")
    public void consum(String message){

        System.out.println(message);

    }
}
